from common.flask_package import *
from model.vip import *
from model.car_info import *
from model.order import *
from common.my_msg import *
from common.my_fun import *
from datetime import datetime,timedelta
import json

bp_comment = Blueprint('comment', __name__, url_prefix='/comment')

# 轮播图
@bp_comment.route('/get/swiper',methods=['GET'])
def comment_get_swiper():
    if request.method=='GET':
        item=[]
        for i in range(1,7):
            sc={
                'image_src':f'{my_gethost()}/static/swiper_img/{i}.png'
            }
            item.append(sc)
        data={
            'code':state_ok(),
            'msg':'获取图片成功',
            'data':item
        }
    return jsonify(data)
